<<<<<<< HEAD
package com.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {
    @Bean
    public Docket webApiConfig () {
        return new Docket(DocumentationType.SWAGGER_2)
                .groupName("WEB-API")
                .apiInfo(webApiInfo())
                .select()
                .apis(RequestHandlerSelectors.basePackage("com.controller"))
                .paths(PathSelectors.any())
                .build();
    }

    public ApiInfo webApiInfo() {
        return new ApiInfoBuilder()
                .title("Tearm5&&Tearm6人才网WEB-API文档")
                .description("本文档描述了人才网微服务接口定义")
                .version("1.0.0")
                .contact(new Contact("Tearm5&&Tearm6",
                        "https://gitee.com/m4y/talent/blob/master/README.md",
                        "820792359@qq.com"))
                .build();
    }
=======
package com.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
import springfox.documentation.service.ApiInfo;
import springfox.documentation.service.Contact;
import springfox.documentation.spi.DocumentationType;
import springfox.documentation.spring.web.plugins.Docket;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Configuration
@EnableSwagger2
public class SwaggerConfig {
    @Bean
    public Docket webApiConfig () {
        return new Docket(DocumentationType.SWAGGER_2)
                .groupName("WEB-API")
                .apiInfo(webApiInfo())
                .select()
                .apis(RequestHandlerSelectors.basePackage("com.controller"))
                .paths(PathSelectors.any())
                .build();
    }

    public ApiInfo webApiInfo() {
        return new ApiInfoBuilder()
                .title("Tearm5&&Tearm6人才网WEB-API文档")
                .description("本文档描述了人才网微服务接口定义")
                .version("1.0.0")
                .contact(new Contact("Tearm5&&Tearm6",
                        "https://gitee.com/m4y/talent/blob/master/README.md",
                        "820792359@qq.com"))
                .build();
    }
>>>>>>> 784072f6c3135fcc1cd41893f32c7972e4abb8b2
}